package com.erp.order.supply.model;

import com.erp.hr.base.model.BaseModel;
import com.erp.order.purchasing.model.QuotedPriceDetail;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.math.BigDecimal;
import java.util.List;

@Data
@Entity
@DynamicInsert()
@DynamicUpdate()
@EqualsAndHashCode(callSuper = true)
@Table(name="supply_material_detail", schema="erp")
public class SupplyMaterialDetail extends BaseModel {
    private static final long serialVersionUID = 1L;

    /**
     * 供货单id
     */
    @Column(name = "supply_material_id")
    private String supplyMaterialId;
    /**
     * 供应商id
     */
    @Column(name = "vendor_id")
    private String vendorId;

    /**
     * 供货单id
     */
    @Column(name = "supply_material_rid")
    private String supplyMaterialRId;
    /**
     * 物资id
     */
    @Column(name = "material_id")
    private String materialId;
    /**
     * 物资编码
     */
    @Column(name = "material_code")
    private String materialCode;

    /**
     * 数量
     */
    @Column(name = "num")
    private BigDecimal num;
    /**
     * 规格型号
     */
    @Column(name = "standard")
    private String standard;

    /**
     * 品牌
     */
    @Column(name = "brand")
    private String brand;

    /**
     * 单位
     */
    @Column(name = "standard_unit")
    private String standardUnit;

    /**
     * 排序
     */
    @Column(name = "order")
    private String order;

    /**
     * 金额
     */
    @Column(name = "price")
    private BigDecimal price;

    @Transient
    private String type;
    @Column(name = "status")
    private String status;
}
